﻿using System;
using System.Collections.Generic;
using System.Web;
using DAO;

namespace BUS
{
    public class LoaiDealBUS
    {
        private LoaiDealDAO _dDAO;

        public LoaiDealBUS()
        {
            _dDAO = new LoaiDealDAO();
        }

        public bool Them(LOAIDEAL _LOAIDEAL)
        {
            return _dDAO.Them(_LOAIDEAL);
        }
        public bool Xoa(LOAIDEAL _LOAIDEAL)
        {
            return _dDAO.Xoa(_LOAIDEAL);
        }
        public bool Sua(LOAIDEAL _LOAIDEAL)
        {
            return _dDAO.Sua(_LOAIDEAL);
        }
        public LOAIDEAL TimTen(String _name)
        {
            return _dDAO.TimTen(_name);
        }
        public LOAIDEAL ChiTiet(String _id)
        {
            return _dDAO.LayID(_id);
        }
        public List<LOAIDEAL> LietKe()
        {
            return _dDAO.LietKe();
        }     
    }
}